using System;

namespace GenericsFramework.BusinessRules
{
	public abstract class AbstractRule<T> : IRule<T>
	{
		protected Func<T, bool> _rule;

		public bool IsSatisfiedBy(T candidate)
		{
			return _rule(candidate);
		}
	}
}